package org.springblade.modules.mes.base.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springblade.modules.mes.base.entity.PrdBom;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@ApiModel(description = "通信消息实体")
public class MessageVO implements Serializable {
	@ApiModelProperty("消息类型 1 申请订单 2 扫码 3 参数 99 消息提示")
	private String msgType;
	@ApiModelProperty("用户ID")
	private String userId;
	@ApiModelProperty("工位")
	private String station;
	@ApiModelProperty("消息")
	private String message;
	@ApiModelProperty("心跳")
	private Boolean heartBeat;
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty("消息发生事件")
	private Date msgTime;
	@ApiModelProperty("物料组成")
	private List<ScanItemVO> mData;
	@ApiModelProperty("加工参数")
	private ParamVO pData;
	@ApiModelProperty("notice")
	private String notice;
	@ApiModelProperty("noticeFlag")
	private Boolean noticeFlag;

	private String assemblyBarcode;
	private String assemblyNo;
	private String assemblyName;
	private String orderNo;

	private Boolean scanComplate;
	private ProductInfoVO cl;

	private Integer repartFlag;
}
